package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.project.bean.RoomBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface IRoomMapper extends BaseMapper<RoomBean> {
    /**
     * 动态条件分页查询房间，同时查询房间主人姓名
     * @param page 分页配置对象
     * @param address 房间地址
     * @return 分页对象
     */
    public IPage<RoomBean> findByItem(Page<RoomBean> page,
                 @Param("address") String address);
}
